package com.tianmenguide.wxapi;

import com.tianmenguide.common.core.domain.AjaxResult;
import com.tianmenguide.guide.domain.AgriculturalProducts;
import com.tianmenguide.guide.domain.Banners;
import com.tianmenguide.guide.domain.ContactInfo;
import com.tianmenguide.guide.service.IAgriculturalProductsService;
import com.tianmenguide.guide.service.IBannersService;
import com.tianmenguide.guide.service.IContactInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.tianmenguide.common.utils.PageUtils.startPage;

@RestController
@RequestMapping("/wxapi")
@RequiredArgsConstructor
@Api(tags = "联系我们wxapi")
public class WxContactInfoController {

    private final IContactInfoService contactInfoService;

    @ApiOperation("查询联系我们信息列表")
    @GetMapping("/loadContactInfo")
    public AjaxResult loadContactInfo(ContactInfo contactInfo){
        List<ContactInfo> contactInfoList = contactInfoService.selectContactInfoList(contactInfo);
        return AjaxResult.success(contactInfoList);
    }
}
